package com.github.raffle.behavior.observer;

public class Test {
	public static void main(String[] args) {
		Supervisor sp = new Supervisor();
		LawDept lawDept = new LawDept();
		MarketDept marketDept = new MarketDept();
		MangerDept mangerDept = new MangerDept();
		
		
		sp.attach(lawDept);
		sp.attach(marketDept);
		
		sp.addOrder("Invest a bank!");
		System.out.println("*******************************");
		sp.attach(mangerDept);
		sp.detach(lawDept);
		sp.addOrder("Invest a factory!");
	}
}
